package com.example.test01;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.IntentFilter;

public class Student {
    Context mContext;
    BroadcastReceiver mReceiver;
    String mName;

    public Student(Context c,BroadcastReceiver receiver){
        mReceiver= receiver;
        mContext = c;
        mName = null;
        registBC();
    }
    public void registBC(){
        IntentFilter filter = new IntentFilter();
        filter.addAction("hyw");
        mContext.registerReceiver(mReceiver,filter);
    }
    public String getStudentName(){
        return mName;
    }
}